Plug in some headphones and see if the weird sound still happens. If it does, then its your sound card.
If you plug 5.1 in a 2.1 card, only 2(+bass) of the speakers will work. The other 3 wont do anything. (Depending on the model of 5.1 but that doesnt matter since 90% of them work the way I said.)