Yes, a PS3 guitar controller can work on a PC. Just plug the USB dongle into your computer and press the home button to connect the guitar.
I've used mine to play Frets on Fire, which is essentially Guitar Hero for the PC—complete with support for custom songs. It's definitely worth checking out if you're into rhythm games.