The EP8 is Shimano's Di2 electronic groupset junction box rather than a motor — you might be thinking of the EP801 (the motor), or you might genuinely want wiring schematics for the EP8 junction in a Di2 setup. Two fairly different things.
If it's the EP801 motor wiring you're after, Shimano's E-tube documentation covers the connector layout and harness routing. The service manual is publicly available on Shimano's tech docs site.
If it's Di2 EP8 junction schematics specifically, Shimano has the full wiring diagrams in their dealer manuals at si.shimano.com. Worth searching your specific groupset generation as the port configurations changed between Ultegra and Dura-Ace variants.
Which one are you actually chasing?