Not sure if it matches exactly what you're looking for, but we build a NodeJS module called drivelist that will return an array of connected drives with their respective mount points (e.g: mount letters in 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 by that property if that's what you're looking for.
The major advantage of this module is that is works in all major operating systems.
See https://github.com/resin-io-modules/drivelist