The housing costs element of Universal Credit can only help with costs on the home you are actually living in. You can sometimes get help to pay rent for a home you're not living in , but this depends on why you aren't living there.
You can only get Universal Credit to cover the rent on 2 different properties in special cases.