...Why the standard pc/windows can't have some kind've internal scanning application that says what you've got and what's needed to make it work, when it's not working...is beyond me...
Apart from the suggestion earlier re: Control Panel, Audio devices etc I'm not sure.
I have
aida32 on my pc (free to download and run, googling it will find several places, offering it). This will give you an idea of what's "inside" your pc, software/hardware etc. This could identify the problem.
One question though (excuse me, if this sounds stupid) I am assuming you had no problems with sound before you formatted the hard- drive, your speakers are working etc...
You can also try
Start,
Run, enter
dxdiag in the space provided.
A screen should appear with headings at the top. Click on 'sound' tab, this should give 'device name' ie what-ever plays your sound, card, driver etc. There is a
test directsound box, click on it. You will be asked if you can hear anything. A small screen underneath will tell you if the test was successful or not - hopefully yes.
You can also try the 'music' tab. Another box should be present, with a list of devices - with the words "test using this port" above it, there should be a
test directmusic box underneath it. Click on the items on the list, then 'test .....' box. Again you will be asked if you can hear anything. A box underneath will show if the test was successful or not.
I had a similar sound problem before as well ie I couldn't hear anything.
Trying to remember how I fixed it. (Didn't need a new sound card anyway, that's for sure)