Did it compress and stick there, or was it just seized when you got it? If it compressed and stuck at the bottom, you may have a time getting it out, but there's still hope. If it's seized just from sitting around, you may be better off looking for another set. What bike do you have? If it's something common, you'll save yourself a helluva lot of grief by getting a set that's in good shape.
If it compressed and stuck, take the forks out of the trees and off the wheel (be careful as one fork will likely still be free and under pressure). Remove the dust cap or fork gaiters. Take the stuck fork and put it in a soft jawed vise, clamping it by the top of the tube. If you don't have a soft jawed vise, wrap the tube with a rag of sorts and clamp it. Make it fairly tight, but not so much that you crush the tube (pretty hard to do, but you never know). Since you took the dust cap off already, you should be able to knock the lower tube gently with a piece of wood and a hammer. Keep tapping it firmly all around the top of the tube until it pops back. Make sure it doesn't release into you, someone else, or something else as it will pop back with some force.
After you get it to let go, take it all apart, clean everything really well, put new seals in and new oil and put it back together. New springs are a good idea too.