For the maximum flowing case, the pressure in the steam superheaters or main system piping (upstream `of drain valves) is its full design value, and one assumes the drain valves are wide open.
The flow area minimum is usually in a valve throat, so one assumes the flow is acoustically choked in the 2nd downstream valve. However, if the small downstream piping is long, then the flow can also be choked in the downstreampiping, but the flow determination is usually based on choking in the second valve.
For the downstream piping, the enthalpy at the pipe outlet ( tank inlet nozzzle) is at mach =1.0, and the pressure profile upstream of this nozzle is based on the Fanno curves or relationships. If you know the casualty flow ( based on choking at 2nd valve) , the enthalpy, and pipe diameter, you can figure out what the pressure P* is in the nozzle at Mach=1.0 .
The pressure at the outlet of the 2nd valve Po is based on the Fanno relationahsips and the ratio Po/P* is:
Po/P* = {(k+1)/(2+(k-1)M^2)}/Mo
Mo= mach number at outlet of 2nd valve, per :
fL/d=(1-M^2)/kM^2 +(k+1)/2k * ln{(k+1)M^2/(2+(k-1)M^2)}
typical values for k=Cp/Cv = 1.3 are :
Mo= 0.3, fL/d=5.75
Mo= 0.2, fL/d = 15.73