Drugs found at Wahgunyah worth up to $400,000, court told