SMART is a standard for disks to report their health status . See
https://en.wikipedia.org/wiki/S.M.A.R.T.
There are likely free utility programs for all platforms, and paying applications on some.
On my PC, I just did "apt install smartmontools" and got the free, industrial-strength utility that is used on countless web servers.
=== START OF INFORMATION SECTION ===
Model Family: Seagate Samsung SpinPoint M9TU (USB)
Device Model: ST2000LM005 HN-M201AAD
Serial Number: F4883HXXXXXXX
LU WWN Device Id: 0 000000 000000000
Firmware Version: 2BC10003
User Capacity: 2,000,398,934,016 bytes [2.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 5400 rpm
Form Factor: 2.5 inches
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS T13/1699-D revision 6
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Fri Oct 20 21:21:01 2017 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
On less user-friendly systems, I reckon you have to hunt the web for one, and hope it's not laced with malware.
Of course, you can use the utility on your fixed disks as well. This can tell you you really have to to start thinking about backups...