Can you test for a miscarriage after a long time past? How can doctors check if you ever had a miscarriage?

just wondering because i had one 5 months ago
Can you test for a miscarriage after a long time past? How can doctors check if you ever had a miscarriage?
Post Opinion