var DriveType: UInt; DriveType := GetDriveType(PChar('F:\')); if DriveType = DRIVE_CDROM then ShowMessage('Сидюк');
Источник: www.blackman.wp-club.net