Firstly, why do you need this information?
Secondly, this isn't really a Python question. Remember that the Python code runs on the client and not the server. Client-side code is written in JavaScript (or something that can be transpiled to JS). Having said that, this is likely going to be difficult to do - browsers aren't going to allow you much access to the underlying OS as that would be quite a security risk, wouldn't it?
You could of course write a desktop app or another web app that runs on the machine and communicates with the server by means of an HTTP API.
Secondly, this isn't really a Python question. Remember that the Python code runs on the client and not the server. Client-side code is written in JavaScript (or something that can be transpiled to JS). Having said that, this is likely going to be difficult to do - browsers aren't going to allow you much access to the underlying OS as that would be quite a security risk, wouldn't it?
You could of course write a desktop app or another web app that runs on the machine and communicates with the server by means of an HTTP API.