// Get the drive name where Operating System is installed MessageBox.Show(Path.GetPathRoot(Environment.SystemDirectory));