boolean sdCardPresent = false; String root = null; Enumeration e = FileSystemRegistry.listRoots(); while (e.hasMoreElements()) { root = (String)e.nextElement(); if(root.equalsIgnoreCase("sdcard/")) { sdCardPresent = true; } }