Looks like your
potato plant is making
seed pods. Some plants after they
flower will produce what looks like small green tomatoes, there are hundred of 'true'
seeds in them. They are poisonous don't attempt to eat them or bite them to see whats inside.
I had it happen a few times, I just pluck them off and throw them away, they'll take the
growing energy out of your plant.