Not sure what you're trying to do here, but I'm guessing maybe diskutil is what you're after.
The catch is that while diskutil, like its GUI counterpart, Disk Utility, can show disks that have been unmounted, it cannot show disks that have been ejected. There's a distinction between having a...