There are no Objective-C classes out of the box for this. Of course you can write your own. Simplest way is to use DiskArbitration framework to get the available drives, grab the BSD name (kDADiskDescriptionMediaBSDNameKey) from the DADiskRef and feed that to opendev().
Internal/startup drives requires root permission to open though.