I believe that the sensors of the F-35 would have been able to. I'm not going to talk about the maximum altitude of the F-35 here because at the end of the day, the F-35—or any fighter aircraft—doesn't need to be at co-altitude with the object, because it can employ weapons that will make up that altitude difference if we decide to take out the object.
On February 17th, 2023. See this statement in context.