The Lead Pipe is a scrapped melee weapon for the Heavy. The Heavy's own Fists ended up taking the place of this weapon before the game was released. It can be seen hanging out of the Dispenser.
Melee weapons concept art
Heavy weapons concept art
The Lead Pipe hanging out of the dispenser.