How do I check when I take off my wear?
object CanWearItem(PlayerInventory inventory, Item item, int targetSlot)
{
    Puts("CanWearItem works!");
    return null;
}

how can check take off wear ?

Probably using the OnItemRemovedFromContainer hook.