How can I find out why my computer restarted?
Just enter eventvwr in the run dialog (which can be called by pressing Win + R ). Under Windows Logs > System look for events from the "Kernel-Power". This will also show if the system unexpectedly restarted by a blue screen and show events prior to it.