There are already laws in some states that prosecute based on the death of an unborn child due to criminal activity.
But those laws are obviously unconstitutional, in that they treat defendants differently based on subjective criteria, denying them equal protection of the laws.