Usually by swapping out known good ones. If your computer won't power on this is usually a PSU or a motherboard problem. If you put a known good PSU in there and the problem continues, it's probably the motherboard. Or if you think your GPU is dying move it over to another system and see if the problem moves as well.