You can use the built-in variable {ARMASM$VERSION} to distinguish between versions of armasm. However, previous versions of armasm did not have this built-in variable.
{ARMASM$VERSION}
armasm