To make it only return one number so you can compare it with other things, you could use VectorLen.
VectorLen(%player.getVelocity());
Also, I'm not sure how you would perform an action when a player hits a certain speed, without a constant loop checking everybody's speed, which is a terrible solution.