finding out why vista crashes

ok well ive got this nice problem where vista locks up and becomes unresponsive about 5 minutes after i log on and i have to manualy shut it down, and right now im in safe mode. Is there any way to see what it was that caused vista to lock up.