system_get_info
($type, $name = NULL)
$type: Either 'module' or 'theme'
$name: (optional) The name of a module or theme
Returns an array of information about enabled modules or themes.