Assuming you're actively monitoring the server(s) with the databases of interest, then SQL Monitor captures this information automatically for you. We capture total size, as well as data and log size (as separate metrics).
These are accessible via the "Analysis" tab. You can also export the data to .csv files, to do further analysis (such as capacity planning).
Is this the information you're after?