So each prison or prison system has its own rules.

But I can imagine a prison allowing people to learn computer skills while also having very limited access to computers. They could have a computer lab that has locked down computers and no Internet access and is accessed with supervision for use only for classes and class assignments.