classify location of the expiry date on drug label and lot number
It seems plausible that it might be doable, using methods in the research literature on object detection and localization (Yolo, Faster R-CNN, etc.).  The only way to tell for sure is to acquire a large dataset of such images and try it out and see how well it works on your data.