Is the "pipe" actually a fixed volume pressure vessel? Because water is so highly incompressible, very little water must expand from the vessel in order to fully vent the pipe. Does the rest of the water remain, unmixed, in the pipe/vessel?
ChasBean has done an accurate volumetric analysis based on complete mixing of the initial water mass, but has neglected conservation of energy.
Let us assume that all of the liquid leaves the pipe. Let us also assume that the final equilibrium pressure is 14.7 psia, but that the (presumed) air in the room does figure into the final state in any other way (first approximation).
(final enthalpy) = (orig. enthalpy) = 390 BTU/lbm
pressure = 14.7 psia
h(f) = 180.15 + X(970.4) [ X is thermodyn. quality ]
X ~ 21.6%
I am still bothered by your assumed "flashing" process. If there is a rigid fixed volume vessel, the above analysis is invalid. You will have approximately 5% of the liquid leaving the pipe before the pressure is completely vented (v = 0.01773 at 10000 psi, 400F) compare to (v = 0.01863 at 400F and low pressures; liquid spec.vol. is more sensitive to temperature than pressure). It is necessary to calculate another heat balance using 80 lbm of water, instead of 1600 lbm.