Plumbing management should have run a hundred gallons or so through the pipes. if there was a hot water pipe there, it would have been obvious. If there was a cold water pipe there, it would have become cooler than the other (gas) pipe.
A good answer is easier with a clear question giving the make and model of everything. "The biggest problem in communication is the illusion that it has taken place." -- G. “Bernie” Shaw