Are AP social science credits useful for Computer Science?

The link above tells you which ones count for what UIUC courses. If those courses qualify as gen Eds, then yes.

Look up what constitutes a gen ed at UIUC.