Find the path to main.py

Hello, I want to manually copy the same main.py script to all of my machines.
When I checked, I have noticed that they all under /media/user_name/xxx/main.py where the xxx changes on every machine.
I want to copy it using a python script that runs on each machine, so is there any way to find the specific path on each machine?

Thanks.

This should work

/media/user_name/*/main.py

Thank you very much!