How much isolation do you need? 2kv, 20kv, 200kv?
Conceptually 3 optos, some resistors and an isolated power supply will do the job, however the exact components you need and the PCB layout design are going to vary depending on your precise requirements.