You have to let Windows know where you want it to output sound to:
Hit the windows key on your keyboard, and type "control". Hit Enter. The old control panel should be open now. Select "Hardware and sound", then "Sound". A list of sound devices should now be open, among which you should see the HDMI output. Right click on it and select "Make default". That should be it, hope it helps