In order to enable the Play To feature on Xbox, you need to go to the System Settings > Console Settings > Connected Devices. Here you can find an option called Allow Play To streaming. You need to tick the corresponding checkbox. After that, you need to open your computer and find the device in the Connected Devices section. Next, you will be able to stream the music as per your requirements.