You can also measure it using a weight like bean said, but allow the weight to bounce. Count the number of oscillations in say, 1 minute, repeat a few times and average out the period of oscillation (time per oscillation). From this you can find the spring constant and heck, even find the maximum force that can be applied to a BB knowing the compression length and predict a velocity.

Whooooo modern physics exam thursday!