The flow rate will depend on level of water and will change with time. So you will have to adopt step by step method or area-integration method to compute discharge.
Suppose, you start draining the tank and at time 't' seconds after, the head in tank is 'Ht'.
Net head (driving head) Hd =Ht-headloss in pipe=
Hd = Ht- f*l*v*v/2/g/d ...........(A)
f=friction factor; l =length of pipe; v= vel in pipe; g= gravitation cont; d= dia of pipe;
Velocity haed in pipe =Hd = v*v/2/g ........(B)
For any particular dia and time step dt at time t you will get v for any t and compute discharge
Dq = v*pi*d8d/4*dt
Perform computations for t=0 to 3600 secs and sum up discharge volumes (dq). The dia which gives you the volume of 10 m3 is the most eco dia.
Hope I it will make some sense.