The only way to identify exactly what an item does is by testing it (trying on the ring, sipping the potion, etc.). If a retainer does this testing, the retainer will expect to keep the item. A high level NPC magic-user may be asked to identify an item, but will want money or a service in advance and may take several weeks (game time, not real time) to do it.
See Expenses for details on costs