It can be one or more of the following:
<?php print $GLOBALS['base_url']; // Set by drupaldrupal_settings_initialize() or settings.php. print $_SERVER['HTTP_HOST']; // Set by apache. print $_SERVER['SERVER_NAME']; // Set by apache. You can also check the database with this query
SELECT * FROM variable WHERE value LIKE '%example.com%' where example.com is the domain; this is not guaranteed to be correct though.