Starlink can see the packet traffic. They ought be able to analyze which dishes are on each side of the conflict. Even if it isn't perfectly accurate, a rough blacklist would help Ukraine tremendously (by hurting Russia). And if Ukraine complains about any that aren't working they can unblock those specifically.