The calculated distance (air line) between Hamm and Berlin is approximately 156 miles respectively 252 kilometers.
By car or train, the actual journey to Berlin is certainly longer, as only the direct route (as the crow flies) between Hamm and Berlin has been calculated here.