Can I extract the properties of a file?

I would like to extract the properties of a file, e.g the duration of an mp3
I know there is a library (tinytag) that would enable me to do it in a Python module but I’m pretty sure it isn’t possible to install libraries.

Is there any other way?