Peek is correct, take these kittens to the vet. Even if it is only parasites, kittens can become very sick and have even become anemic and required blood transfusions from GI parasites.
Other disease can be Feline Leukemia, Feline Infectious Peritonitis, FIV, Toxoplasmosis, Panleukemia, and many more.
It means that both kitties have to see a vet. Are they up to date with shots/worming? Around any other cats?
In any event, when a young kitten stops eating and has diarrhea, the kitty should be seen right away by a vet.
Dr. Cheng may have more insight for you, but I think the bottom line will be that you have to take them in to be seen.