To look for errors open the Event Viewer and look under the System and Application listings.
Start > Run > type in eventvwr.msc and click OK, (for clarity that is EVENTVWR.MSC).
If you haven't used it before it is a new thing to learn. Double click an entry in the listing to see more details. The Event ID can be Googled.
If you see a fleeting blue screen then open the System dialog in the Control Panel, then under the Advanced tab click the Settings button for "Startup & Recovery". In the new window, under System failure, remove the option to "Automatically Restart". That will allow blue screens to remain displayed so you can note the message down. The STOP Error code is important there. You cannot remove that screen except by a forced shutdown, press the Start button on the computer and keep it depressed until the screen goes blank.
Mark
Does anyone know of a utility that can monitor your PC during shutdown and capture any error messages?
I am using Windows XP, SP3. When I shut down my PC, it takes a very, very long time. During the process, I sometimes (not always) see a blue error message screen flash by very quickly, I have been able to pause the screen to read the message.
http://forums.cnet.com/5200-6138_102-0.html?forumID=31&tag=forum-w;forums06
The result is that my PC sometimes gets locked. If I force a reboot, it results in a ?chkdsk? screen.
Any suggestions would be helpful. Thanks.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic