Hello! It depends on the file format actually.
gltf uses animation groups where .babylon uses direct animations.
So depending on which format you use the info will be in different places (in animationGroup for glTF and directly on the skeleton in .babylon)