I suppose one way would be to look at the headers from a http request that the phone sends.. different phones have different header content (for instance User-Agent, or or the x-CiscoIPPhone version). Another would be to query the http server on the phone and get the actual device type.