Miscarriage cause

Is the hospital able to check to see why you had a miscarriage through blood work ? Or any other test like if your unable to carry kids or anything?