getComputedStyle(element).getPropertyValue('position')
will return 'sticky' for a sticky element. It doesn't report whether the element is currently behaving as a static or fixed element but this might be enough to get what you need.