What we ended up doing was populating the Description field of AD with Student - course code like ENG151 etc. This field come thru as Position under User and Location. Since we were not using those fields for anything we put the course descriptions there and can leverage that. It isn't as granular as the exact class but for us, it works.
This has been a popular request for some years now. It would be highly useful for K-12 districts that have 1:1 iPad deployments. If we were picking a new MDM today this would be on our must have features list.