Windows XP thus by extension Windows 7, hopefully, has an event log that can be viewed with the event viewer.
Open Event Viewer Kick the event viewer off and start hunting around. This isn’t spiritually rewarding but can help, I think shut downs due to overheating are logged.