A new way to weigh the mass of distant alien worlds could help reveal key details about how friendly they may be to life, researchers say.