Well, first of all you'll need to establish that they're using Apache. Something in the $_SERVER array may help there.
Then once you've confirmed that, use one of the [man]Apache[/man]-specific functions (it shouldn't be too hard to figure out which).