Hi,
Thank you for posting your query.
I have noted your history and present complaints. There is no connection between your past history of 
epilepsy and the current coughing of blood.
This needs further evaluation, with Chest X-ray and 
sputum culture examination.
You can 
consult a pulmonologist or chest physician for further evaluation and treatment.
I hope my reply has helped you.
I would be pleased to answer, if you have any follow up queries or if you require any further information.     
Best wishes,
Dr Sudhir Kumar MD (Internal Medicine), DM (Neurology)
Senior Consultant Neurologist
Apollo Hospitals, Hyderabad,
For DIRECT QUERY to me:  http://bit.ly/Dr-Sudhir-kumar 
My blog: http://bestneurodoctor.blogspot.com/