In javascript this is available through:
navigator.userAgent
and in a microflow I think you can pass the system.httpRequest entity as a parameter and read the headers over the association. You should be looking for the user-agent header.
There has already been some work done for you here;
https://community.mendix.com/link/questions/8583
Hope it helps :)