From the ULevelSequence, you can get the MovieScene and then call GetPlaybackRange(). In the sequencer editor, the playback range is the range in the ui marked by the green/start and the red/end markers.
The playback range is a TRange so for example, if you’re looking for the length in seconds you need to do: