...
How can I query the status of the field bus of the other gateway?
Yes, have a look at the user manual there are the following registers available:
...
Why are there two two RJ45 sockets for the connection
Only if a "Device Level Ring (DLR)", an optional feature of this fieldbus, is used for greater reliability (redundancy), both connections are required.
...