You can list the drives of the system by using the listRoots() method of the File class:

 File[] roots = File.listRoots();
for(int i=0;i<roots.length;i++)
    System.out.println("Root["+i+"]:" + roots[i]);