If it happens in your XP installation as well, it seems to rule out a software error. It could just be a co-incidence that Windows 7 was a recent addition at the time. I guess you are dual booting?
Also, as there was no error message or blue screen it seems to indicate a deeper fault. You could turn off automatic restart in XP just in case it is a software crash:
http://pcsupport.about.com/od/tipstr...utorestart.htm
Overheating would cause very similar symptoms to those you describe. It might be worth giving your PC a clean and running some temp monitoring software to see if your CPU is too hot.