You’re using the CGTerrainManager right? Well you can pack this information into one of the vertexcolour channels, although it may not be that easy to get at on the game thread.
Alternatively, considering some mathematical techniques :
Building Worlds Using Math(s) Around the 33:00 mark Sean Murray talks about calculating the analytical derivative which in very basic terms gives you some information about the slope on a given point.