FYI - be sure to hit "reply" on the post you're replying to so I'm notified of your response
I'm not sure if this is fool proof but it's worked for me several times. If I have the IMEI, I'll check if it's carrier locked. If it is, it's not necessarily a deal breaker, as some carriers will allow unlocking the bootloader, but I haven't risked it. If it's carrier unlocked, that gives me hope, but still no guarantee at all.
Next is I check the exact SKU of that model and I'll look that up. For example, If I saw a Pixel 8 for sale on eBay and the model listed was GA04803-US, I would search that. I see that this is the (Unlocked) option from best buy. This gives me a lot of confidence that it's bootloader can be unlocked.
Again, no idea if there's a better technique, but that's what I do.