Simple and brutal... cut a piece out of the pipe so there is a gap between the ends and see which end the waterliquid carries on coming out offlowing from. Just hopeThe question doesn't ask that the pipe network stays functional and this solution requires minimum tools (a saw or a pipe cutter would be enough) and will work on any pipe type and any liquid type. Though it might get messy and you'd better hope it's not thea pipe carrying sulphuric acid pipe or the floor might get damaged. And if it's a gas rather than a liquid you might need some streamers to show the gas flow.