Minecraft wiki entry for Development_versions, associated text: Can have their inventories accessed if they have a chest on.
Right-click while sneaking to open it.
The name of the donkey will show in their inventory GUI similarly to other renamed containers.