Not sure if it matches exactly what you are looking for, but we create a NodeJS module called drivelist that returns an array of mapped drives with their corresponding mount points (for example: installation letters on Windows):
[ { device: '\\\\.\\PHYSICALDRIVE0', description: 'WDC WD10JPVX-75JC3T0', size: '1000 GB' mountpoint: 'C:', system: true }, { device: '\\\\.\\PHYSICALDRIVE1', description: 'Generic STORAGE DEVICE USB Device', size: '15 GB' mountpoint: 'D:', system: false } ]
Non-removable drives are marked as system: false , you can filter this property if this is what you are looking for.
The main advantage of this module is that it works on all major operating systems.
See https://github.com/resin-io-modules/drivelist
source share