"Speaking of which, ..." is used as something like "oh, while we're on the topic, ...". I guess technically you could say "Speaking of that, ...", and be understood, but it'd sound really weird because "speaking of which" is a fixed expression in the English language, kinda like an idiom.
Hope that helps!