For any of the below commands if the output is 1 then its is hdd and if it 0 then it is ssd
$ lsblk -d -o name,rota
NAME ROTA
sda 0
sdb 0
sdc 0
(or)
$ cat /sys/block/sd*/queue/rotational
0
0
0
Information: To find available storage you can do it with command "lsblk"
***