For the Ideapads, it may be as easy as using this and follow the steps to check in UEFITool whether the string exists (more info on the page):
For the Thinkpads, it may also be possible depending on the dates of release and type of BIOS/UEFI firmware. I’d need more information and research for that.