No. You will not know it is a Ditto until after you catch the Pokemon. A dialog will pop up with "Oh?" and a short cutscene will play showing the Pokemon turn into a Ditto.

There is no way to tell beforehand, unfortunately.