I have seen similar questions asked here about how one can know what cause the system to restart.

However if I'm not mistaken, they wouldn't show specifically which hardware failed or if it was caused by CPU because of high temperatures or even GPU.

So my question is, is there a way that I can check for the cause of system restart?