Not all prisons allow marriages. The best way to find out is to ask the chaplain or religious coordinator of the prison.
Personally, I would advise against marrying someone when they are still an inmate. Most marriages fail.
I have worked within prisons for the last 10 years and it is very difficult to really know someone before they are out. I always advise against it.
www.thefreeinmatelocator.com