I've had this happen to my old computer, basically fried everything. I had this same problem, and basically what it was, was a combination of a failing PSU and the power draw of my PC was more than the PSU could consistently handle. The new PC I built, I made sure that my PSU was a lot more than I needed.

Is your computer shutting down 100% or shutting down and rebooting?