If the system been moved. Power it down and check that the ram and cards are seated. Also check that the CPU cooler on tight and the fan is working.
See if it a virus or hardware issue if you can boot into the mb bios and sit at the temp screen see if the temp is going to high before the pc shuts off. If it sit there fine try booting from a anti virus rescue cd. Avast and avg have free ones. Boot from the cd and scan your system. The last part could be a bad ups or power strip or outlet. Try the pc on another outlet to ,akesure it not the outlet or if there an ac or frig on the same fuse and your having power spikes.