Check the systems box to see if there's a warm spot as this sounds like a power supply issue.
How old is the system?There should also be a fan running when the system is on to cool the systems components.Is the fan running?If not and any area of the systems case is warm,try replacing the fan and hope your power supply and other system components haven't fried.Basically I would suspect you have an overheating issue.
jguard