Try booting the computer in safe mode. If it successfully goes into safe mode it is the OS. If not I would suspect the PSU, CPU, or bad RAM.