In a large saucepan over medium heat melt butter. Stir in flour and garlic powder. Add milk all at once. Cook, stirring constantly, over low heat until thickened. Add cheeses and continue cooking, stirring until cheese is melted. Stir in corn and ham.