More than £1 million has been spent on art classes and initiatives for prisoners in the last three years, it has been revealed.