Whichever team has the best regular season record gets home ice advantage in the Stanley Cup Final. That means it hosts Games 1 and 2, and possibly 5 and 7.
The other teams hosts Games 3, 4, and possibly 6.