Catalysis of the reaction: 2-hydroxy-2H-1,4-benzoxazin-3(4H)-one + NAD(P)H + H+ + O2 = 2,4-dihydroxy-2H-1,4-benzoxazin-3(4H)-one + NAD(P)+ + H2O.