Unless this happens while connected to other devices, this is generally due to poor hardware. What motherboard are you using ?
This is generally fixed with a dac / sound card addition to your PC. Simply put, the whole lot of electric current flowing through your PC causes interference in the...