How do I identify rough-in plumbing pipes?
Closet to the corner against wall is for a shower or bath drain. The next is toilet drain.  The next is where you attach the sink drain.  

The fourth (closest to camera) is the main stack for the house, with the main line clean out at the bottom.