Once you remove the SSD and HDD from this PC and connect them to a working PC, you can download this app to be used for testing them: Best Free Partition Manager for Windows | MiniTool Partition Free
It has an option named Surface Test and you can use that to check out both the SSD and HDD.
Good Luck