I have a windows 10 pc with a wired 5.1 surround sound. Also.in the same room (but not near to) I have a PS3. Is there any way

You need to connect to the 5.1 system not the PC. I don't think there is a way you can connect them without wires and get 5.1 digital surround sound. A BT transmitter will only work in stereo.