nella variabile $_SERVER['HTTP_USER_AGENT'] trovi tutto quello che ti serve