Check the windows error log
control panel > admin tools > event viewer > windows log
check the system and application log around the time it shut off. You will see red X for any problems.
I had a similar issue, turn out to be my external wireless adapter was crashing. update driver and it had been running for 3 weeks now.