You may be having an issue with your RAM.
That screenshot shows your BIOS screen. The BIOS boot routine has completed the CPU check and froze on the next check: RAM.
Windows will also not be happy with a RAM issue, so that would also explain the second freeze.
Have you made any changes to your computers hardware or in the BIOS settings?
With the computer off, power disconnected, and using proper static precautions:
Remove and replace the RAM modules. Check to see if the contacts are clean and there is no dust, hair, or grime in or around the RAM sockets.
Run
Memtest86+ - Advanced Memory Diagnostic Tool for at least 3 passes to test the RAM.