In the US. I believe the most invasive they can get is a credit check. (With your permission.) They will also call past employers to confirm years of employment and maybe check if you are eligible for rehiring.
Certainly not medical history.
We’re also assuming anything that shows up on the internet about you is fair game for a manager or HR person when making a hiring decision.