There are many ways to do this.
I would approach the problem like this:
three zero-crossing detectors
timers to measure the time period from phase A to B and B to C
logic to interpret the time period data
I would approach the problem like this:
three zero-crossing detectors
timers to measure the time period from phase A to B and B to C
logic to interpret the time period data