Stepper motor problem

Assume nothing, measure the windings with the resistance range of a multimeter. The resistance of the
windings will determine how it can be driven. If its 10 ohms or less you are probably limited to constant
current drivers like the DRV8825. If 30 or 40 ohms range it can be voltage driven from an L298N at 12V,
but it will be slow. Trying to voltage drive a current-controlled motor(*) severely limits the achievable speed.

But you also need to know how much current the motor needs - what size is it? The max current is usually
determined by thermal considerations, although some older steppers are destroyed by overcurrent (the
permanent magnets are weak and can be de/remagnetized by over current.)

(*) steppers are designed to be current driven.