What is metaformin and will they prescribe it

If I get diagnosed when I go next month to the doctors with endo or pcos will they give me something to take ? Or recommend birth control?