Wall.Orientation obviously gets the global orientation of a wall but if you need to compare that to a room you might have to try offsetting your wall curves to see if they end up inside a room or not.
It could be coupled with the use of the vector given by the Wall.Orientation node. Information can easily be found through the search field on this topic, see for instance: