miscarriage

hi! ive never had a miscarriage before but recently i felt like i had one. idk where else to post this sorry! i was just wondering how long after a miscarriage can a doctor tell if you had one? i dont know and i would really like to be checked but im not sure if its too late or not pls help:( its been almost 3 weeks