Which of these is the sewer cleanout
You are going to have to do some experimenting. Remove the plugs and start running some water, flushing toilets, etc., and observe which way the water's running. If this is multi-family, there could be separate drains for each unit. If you have a building plan it might show up on it. There's not much else we can do from here.