Haha I wish. You cannot access passport details for any reason as an immigration officer. It must be on legitimate grounds, including the processing of an application or some other legal reason.
My dad could do it but if gets audited, which immigration officers do here (drug tests, electronic...