smartmontools

Install

Ubuntu

sudo apt install smartmontools

To install the optional GUI...

sudo apt install gsmartcontrol