For any question concerning the French Social Security, do not hesitate to consult its  FAQs

Please contact the office of the place you live in France. The best way to get a quick answer is to go directly to the office with your ID document. Then you should get your french social security number (called "numéro d'immatriculation").

You will find the way to contact the Social Security office on its website (called "Ameli").