Two are one set of coils, the other two are the second set.
Take a test meter and check for continuity between two wires. Mark them as A+ and A- Check the other two and mark them as B+ and B-

Don't worry which one is which as that's configurable later in software.

.