This is a very broad question. HWiNFO can help with that, but only to a certain degree.
There can be hundreds of different faults that cannot be detected or diagnosed using any software. Such faults are usually detectable only using indirect methods depending on how the issue manifests.
There are couple of threads asking for diagnosing various problems and crashes on systems. Check there first.