https://www.sageadvice.eu/would-the-identify-spell-reveal-if-an-item-is-sentient/
Would the Identify spell reveal if an item is Sentient?