Electromagnet with Adafruit motorshield

Wait how much less voltage does each motor get?

Carefully study the motor driver documentation, or ask Adafruit.

However, it would probably be safe to assume a voltage drop within the motor driver of less than 0.5 V.