Come posso identificare una macchina client Mac o Pc usando la variabile

HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)

?