This is going to depend heavily on the state, unless you try to volunteer with federal prison (called the bureau of prisons). Most states call their state prison system the department of corrections. I would conduct a search for your state and area based on this info. I wouldn’t spend too much time looking at anything other than DOC or BOP. Local jails generally don’t have long term rehabilitative programs like learning to code.