Another possibility is that the computer has been compromised on the software side (e.g. someone installed malware while you left it unattended). You could try booting a LiveCD to see if the system runs normally (when loading the OS from the CD and not using the HDD) - if it does, that suggests that there is a software (or HDD) problem.
http://www.ubuntu.com/download/desktop/try-ubuntu-before-you-install has instructions for running Ubuntu as a LiveCD
Or if you're comfy with a command line,
http://www.sysresccd.org/SystemRescueCd_Homepage is a great liveCD that is nice to have around for diagnostics, data recovery, etc. (also, it's smaller than Ubuntu, so quicker to download).
EDIT:
Also, if an overheat is causing the shutdowns, you may have entries reflecting that in the Windows error log, if you can keep the computer up long enough to check that. Overheating components can generally throw some errors when they get into the danger zone, before the whole thing locks up - and the error message will ID the overheating part (although the cause of the overheating might be a dead fan, or fried thermal paste from a bad heat excursion).
Fans are relatively inexpensive to replace in most machines.