The pipe that has the elbow in it is one side of the loop going to both side of the building, the larger pipe used to point down and go to the boiler. The one sticking out of the wall, and a missing pipe out of view to the left were the other section of the loop and would have also connected to the boiler.

Photo album created with Web Album Generator