How Do I fix The Audio in Windows 8?
Based on the model of your computer (iMac 27" Mid 2011) you should be using the drivers located at http://support.apple.com/kb/DL1720 on your copy of Windows 8/8.1.