Javascript is confined to the browser level, and hence cannot read/write to files, let alone get a list of removable drives...The restrictions are there for a reason...
Imagine if there was no restrictions, a javascript code behind a web page could do very very malicious things to your system such as removing vital system files, easily infect a machine without the user ever knowing about, the whole thing on browsing would be killed instantly and have loads of zombie computers operating a big massive bot spamming/hacking/breeding ground for viruses/malware...unpleasant scenario...
That is why Javascript is so restricted in terms of security and confined to only what the browser can display/render. No File I/O, System I/O etc..
Hope this helps,
Best regards,
Tom.