You can use the DirectoryInfo object in the System.IO namespace:

Code:
    string s = Server.MapPath(Request.ApplicationPath); 
    DirectoryInfo d = new DirectoryInfo(s);
    Response.Write(d.Name);