Returns the program/package name and version as a string with optional format customization.