JavaScript have access to the window.navigator.platform
- a string representing the platform of the browser:
https://developer.mozilla.org/en-US/docs/Web/API/NavigatorID/platform
Use it to extract whatever details you need (and can). Note that there are no guarantees that the client actually uses that platform since this can easily be modified in many ways.