It sounds like you already know that Trileptal is Pregnancy Category C. This means that there are some animal studies showing harm to the animal fetus, but there are not enough human studies to determine how harmful the drug is during human pregnancy. Drugs like Trileptal can be used during a pregnancy when the physicians (your neurologist and obstetrician) feel that the benefits of the drug outweight the risk. This needs to be decided on a case by case basis. It sounds like your physicians have made this recommendation to you.
If you have further questions, you may ask them what alternative drugs might be considered to treat your seizures. It may be, however, that Trileptal is the drug that they think is the best choice.