The package provides the environment variables ROS_VERSION and ROS_DISTRO.
Links
Repository
Bugtracker