It's the first thing you do when you suspect hardware problems with a disk.
Get some HDTune, CrystalDiskInfo or whatever people use on Windows, run it on a machine with the suspect SSD connected, find the option to get "health data", "diagnostic data" or whatever the software calls it, look at the results. If all "normalized" values are at or near 100 and raw values of counters involving uncorrectable errors are zero, the disk hasn't had bad sectors. SSDs should also report "Media Wearout", so take a look at that.