MiniMapInstanceDifficulty is what you are looking for.
The flag changes based on what kind of dungeon you are in, and the number value associated with the instance type can be found through GetInstanceInfo()
http://wowprogramming.com/docs/api/GetInstanceInfo