Open the Event Viewer logs.
There should be some red or yellow icons indicating errors that have occurred. Look for entries just before or at the time of the PC shutdown.
Right click an entry for more information.
If you find some error codes or other "text" error message just google that and see what the possible causes may be.