If you’re using a FileDialog node, just set the access property to “File System” after that you should be able to select the current drive. You can do this in the editor or via code:
$FileDialog.access = FileDialog.ACCESS_FILESYSTEM
Otherwise it would be enough to use "D:\" (for example) in the path you are using to get or write a file.