I have had the same problem years ago, try playing around with the audio settings, essentially you want to divert audio from the built in speakers to the HDMI. As we are talking windows, it could literally anywhere, sound card driver, firmware, the way the HDMI is built, you name it. Have you tried getting the audio to the TV in 3.5mm to cinch?
Sorted thank you for the answer and yes you were right it is in the sound settings.
If any one else needs this. Right click on your speaker and select playback options, You will have listed your speakers and another option mine is SPDIF Interface. The speakers will be the default, right click on the other option and select default this should sort it. However just remember to select speaker again when finneshed.