Use this to find out if the disk is regular spinning hard drive or SSD
lsblk -d -o name,rota
or
cat /sys/block/sda/queue/rotational
You should get 1 for hard disks and 0 for a SSD.
Does not work when the disks are in RAID array. Reports 1.