most likely through its "SIGINT" resources...the same means that led them to warn Ukraine that Russia was going to attack them back in February.
Could explain why German legislators are pointing their fingers at Vlad...
Link: https://www.businessinsider.com/cia-warned-germany-attacks-nord-stream-pipelines-leak-sabotage-report-2022-9