It's quite possible to teach sophisticated computer science without computers at all, so the first question is what the most useful skillset will be. Basic frontend engineering is probably the most in-demand skill today and allows individuals to see their product on the web right away. Young inmates may also be interested in coding as a path towards entrepreneurship and this can be bundled into a curriculum.
You can code with just a text editor and view results in a web browser without internet access.
Here are two apps that may prove useful as text editors:
1) https://itunes.apple.com/us/app/diet-coda/id500906297?mt=8
2) https://itunes.apple.com/us/app/codetogo/id382677229?mt=8
It may also be possible to take the iPads out and upload the content to the web yourself, provided staff review & clear the content. This can lead to effective outcomes.
-Anand