Both .sm4 and .sm2 files are special and proprietary projects from XPMPro spectrum analyzer and there is no other software that can actually work with these files. And since these files are from different versions of the tool, this sm4 to sm2 conversion might not even be doable, because backward compatibility is rare feature. But you can always try to reach out to their support.
Updated: August 4, 2023