Given an initial text find/segmentation, you could use a classifier to distinguish between machine font and handwritten text. But if you can make deductive assumptions about the machine printed font, even if for just a few fields, you could have an advantage. Proper feeding and care of classifiers is an important task.
You can also read about classifiers on Classification in Machine Learning.