Fact pe_version
In: /etc/puppet/modules/stdlib/lib/facter/pe_version.rb

Fact: is_pe, pe_version, pe_major_version, pe_minor_version, pe_patch_version

Purpose: Return various facts about the PE state of the system

Resolution: Uses a regex match against puppetversion to determine whether the

  machine has Puppet Enterprise installed, and what version (overall, major,
  minor, patch) is installed.

Caveats:

[Validate]