The following code will check if the currently logged in user is Super Administrator in Joomla 2.5.

$user =& JFactory::getUser();
$isSuperUsers = 0;
foreach ($user->groups as $key => $value){
if($key == 8){ //8 is Super Users group code
$isSuperUsers = 1;
break;
}
}