A quick poke around with a multimeter set to measure resistance will soon allow you to identify the connections. For now you can label the coils as A, B, C, and D as in the diagram, don't worry about which is actually which just yet. If you have a six wire motor then A will be with B and C with D. To drive a stepper motor, you need to excite the coils in a particular sequence. For this type of motor, there are two sequences that will work. You can use either drive sequence for your stepper motor.
Some motors work more reliably at speed with one sequence rather than the other.
If you wish, you can interleave the sequences to effectively half the step size from your motor. The first of these energises just one coil at a time. We simply allow current to flow each coil in turn, repeating the cycle for as long as we wish to continue stepping. As the power is switched from coil to coil, the motor moves around one step. Reverse the order in which you energize the coils and you will reverse the direction of rotation of the motor.