Make sure your video card has sound chip to output sound through HDMI. Some cards have this ability and some do not.
Also, some motherboards support optical 5.1 Toslink out, which can also be used with any receiver.
HDMI solution is easier, but more tricky to get working as you would need to...