A quick way to find out if you had a 401(k) is by checking your W-2 forms from previous tax returns. If you contributed to a 401(k), you’ll usually see an amount in Box 12 of your W-2 from that employer. 401(k) contributions will typically show up with letter code D.
You can also try reaching out to someone in the HR department at your previous job to confirm if you had a 401(k) plan set up.