25 mm/rev lead screw is probably a little big to drive with a NEMA17. Go with the NEMA23.

A typical motor driver will allow you to send direction and step commands over the GPIO. This is the easiest way to control the motor in open loop mode. Your program will tell the controller to take 200 steps to move your linear slide by 25 mm each step being about .125 mm.

The speed is going to be determined by how fast you send step commands if you send 1 step every millisecond, you will get a linear velocity of 125 mm/s. if you sens a step command every 5 milliseconds, you'll get a linear velocity of 25 mm/s.