before jumping into hardware, make sure the software that you are running is fine. Even though your friend with the same CPU can handle it, you might have other software causing instability with other programs opened at the same time. If you found no issue, go with a clean windows installation. I would try to run whatever is causing the crashes before anything else (even drivers, try both with outdated and newest drivers)
For hardware, ofc, check temperatures of the CPU, make sure they are OK, and check the RAM, run a RAM test.