I have had many patients, who are men with a compulsive interest in the previous sexual experiences of their partners. They have been so pre-occupied by their partner's previous experiences, and they have asked so many questions about details about this, that the woman got fed up and left the man who has been so possessed with this.
A sound relation between two partners must be based on trust and acceptance, not on one partner trying to control the other partner through a kind of retroactive jealousy.
The problem is thus a problem for you, not for your partner. If you often have problems with being pre-occupied with compulsive behavior, you might be aided by SSRI medicine combined with cognitive psychotherapy.