Not really. You have to rely on the documentation of the board that you are plugging in to. Some will say “SATA only”, some will say “NVMe only”, some will say “both” - you then choose (buy) your M.2 SSD accordingly - with NVMe much preferred on performance grounds.
Provided that the software is comparable (or identical). One thing you can definitely say is that it is not the M.2 NVMe drive.
Are these both Purism laptops?