Drupal - Determine whether module is enabled / disabled

This code will list all non core enabled modules:

drush pm-list --pipe --type=module --status=enabled --no-core

drush pm-info

Gives status of module with additional information as given below:

drush pm-info <module_name>

 Extension        :  <ext>
 Project          :  Unknown
 Type             :  module
 Title            :  <title>
 Description      :  <desc>
 Version          :  6.x-1.0
 Date             :  1970-01-01
 Package          :  <pkg>
 Core             :  6.x
 PHP              :  5.3.5
 Status           :  enabled
 Path             :  <path_to_the_module>
 Schema version   :  <schema_version>
 Requires         :  none
 Required by      :  <list_of_modules_this_module_is_required_by>
 Configure        :  None

Tags:

Drush