ImperialImperial say that, for Computing BEng, they made their typical offer "to at least 80% of 2022 A-level applicants." (Their typical offer is A*A*A for applicants studying 3 levels and A*AAA for applicants studying four). If we look at their published statistics for "New Entrants' Achieved Grades" we can see that the Department of Computing hasn't accepted anyone with less than two A*s (regardless of how many A levels they have) since 2018. (
source) So your should be under no illusion as to how hard it is to gain entry to this course.
Imperial state very clearly that, "The only GCSE grade that we may consider with respect to entry requirements is English language grade if the applicant is using the results of this qualification to show that they meet our required English language standard for entry, or a relevant modern foreign language for courses with a year abroad." Other than that,
they pay no attention to GCSE grades whatsoever. They don't publish the GCSE grades of successful applicants as they don't bother to retain that information - it's irrelevant to them. Your GCSE grades are therefore only important in so far as they allow you access to the A levels you want to study. They are not important to Imperial.
UCL
UCL say that for Computer Science BSc, their entry requirements are A*A*A and don't quote separate grades for those studying four A levels (suggesting that they might simply ignore the fourth).
UCL are much much more reluctant to release information about admission statistics and the grades of successful applicants, denying freedom of information requests by asserting that, "even providing this information on an anonymised basis it is possible that the underlying individuals could be identified". That sounds like a spurious argument to me. Looking outside Computer Science itself, they have release some (dated) information which shows that for
successful candidates with 8 or more GCSE results in the 2018 admission cycle, 25% of GCSE were A*, 32% were A and 32% were B (with remainder being B or below). The fact that they're quoting GCSE grades in terms of letters rather than numbers shows you how old the data is! However it does show that GCSEs at a grade B/6 are certainly no bar to entry.
SummaryDon't worry about your GCSE grade profile (other than for Maths, if that's stopping you gaining access to the A levels subjects you want to study). You will need to do exceptionally well at A level to gain access to you preferred course - as will all other successful applicants.