I don't think that this is the first thing that you should ask someone, but it is definitely a valid question for the future. I would like to know if my partner is a virgin or not. I would want to know if I need to take special care for a first time encounter or not. It's also good to know your partners history. It can be a helpful thing to know, so that you can avoid any awkward experiences together and really understand each other. I really don't see anything wrong with asking this, but I'd wait until you are going in that direction.