Before I pick a tuning option I want to know what kind of disk I am looking at. The kernel already knows.
lsblk -d -o NAME,SIZE,ROTA,MODEL
-d hides the partitions and -o picks the columns. ROTA is 1 for a rotating disk and 0 for an SSD or NVMe drive. The same value lives in /sys/block/sda/queue/rotational, which is handy in scripts. Caveat: a virtual machine or a hardware RAID controller may report 1 for everything, so the number only describes what the system is told.
Further reading: lsblk manual page