There is no such CLI command, if you're running 12.5+ the GUI shows the last time the phone was active.
If you're running a lower version, your only option is to get CDR/CAR reports and cross reference which phones ARE making calls in those reports, to find out which phones ARE NOT making calls.
HTH
java
if this helps, please rate