Thaw hash browns and pat with paper towels to absorb moisture. Place potatoes in 9 x 12 pan and pour butter over top. Bake 350 for 20 minutes. Meanwhile, mix the grated cheeses, the ham, eggs, and milk. Now pour mixture over partially baked potatoes. Bake 40 minutes longer at 350.