Get the Advanced Power Management level

hdparm

sudo hdparm -B /dev/{{device}}

click the source code to copy install hdparm on any operating system with command-not-found.com