Yes it is possible.
You want to use $_SERVER['HTTP_USER_AGENT'] , which contains information about the user's operating system and browser.
You can use this resource to search for user agent strings (which are stored in this variable).
However, browsers can spoof this information, so you cannot assume that it is reliable.
source share