Are you seeing the Locked to Owner screen? Without the Apple ID and Password, the only way to remove the Activation Lock without those credentials is by providing the original purchase receipt from Apple or Authorized Apple seller and follow the steps provided here.
How to remove Activation Lock - Apple Support
Activation Lock is used to prevent theft by making the device unusable without the information that only the original owner would know. There is no way to look up the Apple ID, but Apple does offer some tips that may help find it.
If you forgot your Apple Account primary email address or phone number - Apple Support
If they are able to figure out the Apple ID email that was used, then they can use Account Recovery to reset the password.
How to use account recovery when you can’t reset your Apple Account password - Apple Support