Is there a way to get database info using a JDBC connection, or is some sort of stored procedure call required? Can it even be done with a stored procedure?

In short, how can I monitor (get access to how much space in a given DB is currently allocated, how much room is left, etc.) an SQL Server 2000 database?