Allowing the selection within the Preferences - > Player -> Output -> Chromecast
Sound Device > Speaker or Speaker group
This may allow other applications like Music Bee remote to select a speaker group or speaker will possibly little or no modifications
Possible .net examples
GoogleCastSharpcaster
Sharpcast