Boil potatoes till tender. Drain reserving 1 cup water. Set aside. In a large saucepan, saute ham and onion in butter until onion is tender. Stir in the flour until smooth; gradually add milk and reserved cooking liquid. Reduce heat to low. Add the cheese, broccoli, and potatoes. Cook and stir until cheese is melted and soup is heated through.