Get some brake hose clamps. Put one on each hose. See if you get a firm pedal. If so, get a friend to release the clamps one by one. If the pedal drops you know where the problem is.
If you don't get a firm pedal with clamps on the problem is before the hoses.