Hi,
After playing a bit with RevitLookup, I've found that you need to check the ParentCategory of the GraphicStyle. In you case it should be Lines.
Try the following code. I didn't check it myself, but should work:
var styles = new FilteredElementCollector(doc) .OfClass(typeof(GraphicsStyle)) .WhereElementIsNotElementType() .ToElements() .Where(e=>e.Category!=null && e.Category.Parent!=null && e.Category.Parent.Id == new ElementId(BuiltInCategory.OST_Lines));
Thanks,
Victor.