Jesus said in heaven we will neither marry nor be given in marriage. So, the answer is neither of your wives will be your wife in heaven.
This is a mystery, but I think it means that marriage here on earth is only meant to give us a glimpse of what the union of the Holy Trinity is like. In heaven, we will be united with God and everything we are supposed to learn about love and God from marriage will instead be learned directly from Love Himself.
I could be wrong though. I don’t have the direct pipeline to His mind or anything! Will there be marriage and new children in the “new heaven and new earth”? Don’t know! But I guess we’ll find out some day!